<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>评论管理页面</title>
    <link th:href="@{/css/admin/userManage.css}" rel="stylesheet"/>
</head>
<body>
<th:block th:insert="~{admin/header :: sidebar}"/>
<h1>评论管理</h1>

<div class="navigation-bar">
    <div class="nav-title">评论管理</div>
    <form class="action-bar" action="#" method="get">

    </form>
</div>

<!-- 用户列表表格 -->
<table>
    <thead>
    <tr>
        <th>用户名</th>
        <th>演唱会名称</th>
        <th>评论内容</th>
        <th>评论时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="comment : ${commentL.list}">
        <td th:text="${userMap[comment.userid].username}"></td>
        <td th:text="${concertMap[comment.concertid].concertname}"></td>
        <td th:text="${comment.commentcontent}"></td>
        <td th:text="${#dates.format(comment.commenttime, 'yyyy-MM-dd HH:mm:ss')}"></td>
        <td>
            <a href="/admin/comment/deleteComment" th:href="@{'deleteComment?id=' + ${comment.getCommentid()}}">删除评论</a>
        </td>
    </tr>
    </tbody>
</table>

<div th:replace="admin/common/console-common :: common_pager(${commentL})"></div>
</body>
</html>